#ifndef MYLABEL_H
#define MYLABEL_H

#include <QWidget>
#include <QLabel>
#include <QDragEnterEvent>
#include <QMimeData>
#include <QDropEvent>

class myLabel : public QLabel
{
    Q_OBJECT
public:
    explicit myLabel(QWidget *parent = 0);

protected:
    void dragEnterEvent(QDragEnterEvent *); //鼠标拖拽进取事件
    void dropEvent(QDropEvent *); //鼠标释放事件
    void mouseDoubleClickEvent(QMouseEvent *); //双击放大

signals:
    void SignalSendPlayPath(const QString filename); //发送一个播放路径
    void SignalSendfullwin(bool);

private:
    QString filename;  //获取文件路径
    bool isfull;
};

#endif // MYLABEL_H
